<?php
class controller{
    protected $v;
    public function __construct(){
        $this->v = new Smarty();
        $this->v->template_dir = './app/'.MODULE.'/view';;
    }
    public function assign($key,$value){
        $this->v->assign($key,$value);
    }
    public function display($tpl=''){
        if($tpl==''){
            $tpl = './app/'.MODULE.'/view/'.ACTION.'_v.php';
        }else{
            $tpl = './app/'.MODULE.'/view/'.$tpl.'_v.php';
        }
        $this->v->display($tpl);
    }
}

?>